package com.qianfeng.taoyuan.volleyDemo;

import android.graphics.Bitmap;
import android.util.LruCache;

/**
 * Created by Administrator on 2015/8/3.
 */
public class MyLruCache extends LruCache<String,Bitmap> {
    private static MyLruCache cache;
    private MyLruCache(int maxSize) {
        super(maxSize);
    }

    public static MyLruCache getInstance() {
        if (cache == null){
            cache = new MyLruCache(10*1024*1024);
        }
        return cache;
    }
}
